<html>
<head><meta charset="UTF-8"></head>
<body ng-app="app">
<div ng-controller="DemoCtrl">
  <pre>{{formData | json}}</pre>

  <div ng-repeat="field in formData">
    {{field.fieldTypeId}}
    <magic-field field-type-id="field.fieldTypeId" ng-model="field.defaultValue"></magic-field>

  </div>
</div>


</body>
<script src='src/jquery.js'></script>
<script src='src/angular.js'></script>
<script src='app.js'></script>
</html>
